package com.weixing.mall.provider.api.service;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.provider.api.fallback.AgentDeliveryServieFallback;
import com.weixing.mall.provider.api.model.dto.DeliveryAddrDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/8/2 17:36
 * @Modified By:
 */
@FeignClient(value = "mall-provider-agent", configuration = FeignRibbonClientAutoConfiguration.class, fallback = AgentDeliveryServieFallback.class)
public interface AgentDeliveryServiceRpc {
    @PostMapping("api/delivery/createDelivery")
    Result createDelivery(@RequestBody DeliveryAddrDto addrDto);

}
